Skip to content

Conversation

@WeylonSantana
Copy link
Contributor

resolves #2604

UpdateDisplay() is called before EnsureEnsureInitialized()

Update display hides the arrows, when the condition is true, EnsureEnsureInitialized loads the json value which is false, so the arrows appear when they shouldn't

Comment on lines 176 to 183

// in case the json load is changing the visibility of the arrows when it shouldn't
// lets ensure the right value
if (CharacterSelectionPreviews != default)
{
_selectCharacterRightButton.IsHidden = CharacterSelectionPreviews.Length <= 1;
_selectCharacterLeftButton.IsHidden = CharacterSelectionPreviews.Length <= 1;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this all to Show() instead, otherwise they will display wrong if someone logs in, the server closes, the configuration is changed, and then they re-log in

@pandinocoder pandinocoder merged commit a682b84 into AscensionGameDev:main Feb 22, 2025
1 check passed
@pandinocoder pandinocoder deleted the fix-2604 branch February 22, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Select char arrows appear when they shouldn't

2 participants